export default {
    path: '/member',   // 申请观看
    name: 'Member',
    meta:{
      title:'EJ',
     // noWxAuto:true  // 不需要微信认证
    },
    component: () => import(/* webpackChunkName: "Member" */ '../views/member'),
    children:[
        {
            path: 'index',
            name: 'MBIndex',
            component: () => import(/* webpackChunkName: "MBIndex" */ `../views/member/index/Index.vue`),
            meta: { title: `首页` }
        },
        {
            path: 'category',
            name: 'Category',
            component: () => import(/* webpackChunkName: "Category" */ `../views/member/category`),
            meta: { title: `系列课程` }
        },
        // {
        //     path: 'merge',
        //     name: 'Merge',
        //     component: () => import(/* webpackChunkName: "Merge" */ `../views/member/merge`),
        //     meta: { title: `系列课程` }
        // },
        {
            path: 'merge/:id',
            name: 'Merge',
            component: () => import(/* webpackChunkName: "Merge" */ `../views/member/merge/detail`),
            meta: { title: `系列课程` }
        },
        {
            path: 'merge/:id/:type/:level',// 团购、分销用，type：1为分销，2为团购
            name: 'MergeShare',
            component: () => import(/* webpackChunkName: "Merge" */ `../views/member/merge/detail`),
            meta: { title: `系列课程` }
        },
        {
            path: 'course',
            name: 'MbCourseIndex',
            component: () => import(/* webpackChunkName: "MbCourse" */ `../views/member/course/index`),
            meta: { title: `课程列表` }
        },
        {
            path: 'course/:id',
            name: 'MbCourse',
            component: () => import(/* webpackChunkName: "MbCourse" */ `../views/member/course/details`),
            meta: { title: `课程详情` }
        },
        {
            path: 'course/:id/:type/:level',   // 团购、分销课程详情
            name: 'MbMarketCourseDetials',
            meta:{
              title:'课程详情'
            },
            component: () => import(/* webpackChunkName: "MbMarketCourseDetials" */ '../views/member/course/details')
        },
        {
            path: 'vip',
            name: 'MbVip',
            component: () => import(/* webpackChunkName: "MbVip" */ `../views/member/vip`),
            meta: { title: `会员卡列表` }
        },
        {
            path: 'myVip',
            name: 'MyVip',
            component: () => import(/* webpackChunkName: "MyVip" */ `../views/member/vip/my`),
            meta: { title: `我的会员信息` }
        },
        {
            path: 'sale',
            name: 'Sale',
            component: () => import(/* webpackChunkName: "Sale" */ `../views/member/sale`),
            meta: { title: '集团推广主页'}
        },
        {
            path: 'sale/qrcode/create',
            name: 'SaleQrcodeCreate',
            component: () => import(/* webpackChunkName: "SaleQrcodeCreate" */ `../views/member/sale/qrcode`),
            meta: { title: '创建推广二维码'}
        },
        {
            path: 'sale/qrcode/:saleQrcodeId', // saleQrcode表数据id
            name: 'SaleQrcodeSare',
            component: () => import(/* webpackChunkName: "SaleQrcodeSare" */ `../views/member/sale/qrcode/share`),
            meta: { title: '推广二维码分享'}
        },
        {
            path: 'sale/qrcode/join/form', // 扫描加入人员需填写的表单（扫描二维码跳转的连接）
            name: 'SaleQrcodeJoin',
            component: () => import(/* webpackChunkName: "SaleQrcodeJoin" */ `../views/member/sale/qrcode/form`),
            meta: { title: '加入人员填写基本信息'}
        },
        {
            path: 'sale/qrcode/join/people', // 加入某个公司的成员列表
            name: 'SaleQrcodeJoinPeople',
            component: () => import(/* webpackChunkName: "SaleQrcodeJoinPeople" */ `../views/member/sale/people`),
            meta: { title: '成员列表'}
        },
        {
            path: 'offline/pay/upload/certify',
            name: 'OfflinePay',
            component: () => import(/* webpackChunkName: "OfflinePay" */ `../views/member/offlinePay/upload`),
            meta: { title: '线下支付上传凭证'}
        },
        {
            path: 'offline/pay/bank', // 线下支付获取银行卡信息
            name: 'OfflinePayBank',
            component: () => import(/* webpackChunkName: "OfflinePayBank" */ `../views/member/offlinePay/bank`),
            meta: { title: '线下支付'}
        },
        {
            path: 'offline/pay/manage',
            name: 'OfflinePayManage',
            component: () => import(/* webpackChunkName: "OfflinePayManage" */ `../views/member/offlinePay/manage`),
            meta: { title: '线下支付管理'}
        },
        {
            path: 'pay/examine/list', // 线下支付审核列表
            name: 'payExamine',
            component: () => import(/* webpackChunkName: "payExamine" */ `../views/member/offlinePay/examine`),
            meta: { title: '线下支付审核'}
        },
        // {
        //     path: 'pay/examine/:id',
        //     name: 'payDetail',
        //     component: () => import(/* webpackChunkName: "payDetail" */ `../views/member/offlinePay/detail`),
        //     meta: { title: '线下支付详情'}
        // },
        {
            path: 'package',
            name: 'Package',
            component: () => import(/* webpackChunkName: "package" */ `../views/member/package`),
            meta: { title: '课程包'}
        },
        {
            path: 'course/reserve',
            name: 'CourseReserve',
            component: () => import(/* webpackChunkName: "CourseReserve" */ `../views/member/reserve`),
            meta: { title: '课程预约'}
        },
        {
            path: 'company/:saleQrcodeId', // 公司主页，销售人员分分享给审核人员的也页面
            name: 'Company',
            component: () => import(/* webpackChunkName: "Company" */ `../views/member/company`),
            meta: { title: '公司主页'}
        },
        {
            path: 'company/course/:saleQrcodeId', // 公司带审核课程列表
            name: 'CompanyCourse',
            component: () => import(/* webpackChunkName: "CompanyCourse" */ `../views/member/company/course`),
            meta: { title: '待审核课程'}
        },
        {
            path: 'my/package/:saleQrcodeId', // 购买的课程包
            name: 'MyPackage',
            component: () => import(/* webpackChunkName: "MyPackage" */ `../views/member/package/my`),
            meta: { title: '我的课程包'}
        },
        {
            path: 'search', // 搜索
            name: 'MbSearch',
            component: () => import(/* webpackChunkName: "MbSearch" */ `../views/member/search`),
            meta: { title: '搜索'}
        },
        {
            path: 'home', // 
            name: 'MbHome',
            component: () => import(/* webpackChunkName: "MbHome" */ `../views/member/home`),
            meta: { title: '我的'},
            redirect:'/member/home/index',
            children:[
                {
                    path: 'index', 
                    name: 'MbHomeIndex',
                    component: () => import(/* webpackChunkName: "MbHomeIndex" */ `../views/member/home/index/index.vue`),
                    meta: { title: '个人中心'},
                },
                {
                    path: 'course', 
                    name: 'MbHomeCourse',
                    component: () => import(/* webpackChunkName: "MbHomeCourse" */ `../views/member/home/course`),
                    meta: { title: '我的课程'},
                },
                {
                    path: 'collection', 
                    name: 'MbHomeCollection',
                    component: () => import(/* webpackChunkName: "MbHomeCollection" */ `../views/member/home/collection`),
                    meta: { title: '我的收藏'},
                },
                {
                    path: 'follow', 
                    name: 'MbHomeFollow',
                    component: () => import(/* webpackChunkName: "MbHomeFollow" */ `../views/member/home/follow`),
                    meta: { title: '我的关注'},
                },
                {
                    path: 'package', 
                    name: 'MbHomePackage',
                    component: () => import(/* webpackChunkName: "MbHomePackage" */ `../views/member/sale/my`),
                    meta: { title: '课程包管理'},
                },
                {
                    path: 'profits', 
                    name: 'MbProfits',
                    component: () => import(/* webpackChunkName: "MbProfits" */ `../views/member/home/profits`),
                    meta: { title: '我的收益'},
                },
                {
                    path: 'distribution',   // 我的分销
                    name: 'MbDistribution',
                    meta:{
                        title:'我的推广'
                    },
                    component: () => import(/* webpackChunkName: "MbDistribution" */ '../views/member/home/distribution')
                },
                {
                    path: 'card/create',   // 个人名片创建
                    name: 'cardCreate',
                    meta:{
                        title:'个人名片创建'
                    },
                    component: () => import(/* webpackChunkName: "cardCreate" */ '../views/member/home/card/create')
                },
            ]
        },
        {
            path: 'organ/:id',   // 机构主页（专栏主页）
            name: 'MbOrgan',
            meta:{
              title:'专栏主页'
            },
            component: () => import(/* webpackChunkName: "MbOrgan" */ '../views/member/organ/index')
        },
        {
            path: 'organ/:id/course',   // 机构课程
            name: 'OrganCourse',
            meta:{
              title:'专栏课程'
            },
            component: () => import(/* webpackChunkName: "OrganCourse" */ '../views/member/organ/course')
        },
        {
            path: 'organ/:id/article/:aid',   // 机构文章详情
            name: 'OrganArticleDetail',
            meta:{
              title:'文章详情'
            },
            component: () => import(/* webpackChunkName: "OrganArticleDetail" */ '../views/member/organ/article/detail')
        },
        {
            path: 'teacher/:id',   // 教师主页
            name: 'MbTeacher',
            meta:{
              title:'专家主页'
            },
            component: () => import(/* webpackChunkName: "MbTeacher" */ '../views/member/teacher/index')
        },
        {
            path: 'card',   // 个人名片列表
            name: 'MbCardList',
            meta:{
              title:'名片列表'
            },
            component: () => import(/* webpackChunkName: "MbTeacher" */ '../views/member/card/lists')
        },
        {
            path: 'card/:id',   // 个人名片
            name: 'MbCard',
            meta:{
              title:'个人名片'
            },
            component: () => import(/* webpackChunkName: "MbTeacher" */ '../views/member/card/index')
        },
        {
            path: 'teacher/:id/course',   // 专家课程
            name: 'MbTeacherCourse',
            meta:{
              title:'专家课程'
            },
            component: () => import(/* webpackChunkName: "MbTeacherCourse" */ '../views/member/teacher/course')
        },
        {
            path: 'teacher/:id/article/:aid',   // 专家文章详情
            name: 'MbTeacherArticleDetail',
            meta:{
              title:'文章详情'
            },
            component: () => import(/* webpackChunkName: "MbTeacherArticleDetail" */ '../views/member/teacher/article/detail')
        },
        {
            path: 'means',   // 资料下载列表
            name: 'MBMeans',
            meta:{
              title:'资料下载列表'
            },
            component: () => import(/* webpackChunkName: "MBMeans" */ '../views/member/means/index')
        },
        {
            path: 'article',   // 文章列表
            name: 'MBArticle',
            meta:{
              title:'文章列表'
            },
            component: () => import(/* webpackChunkName: "MBArticle" */ '../views/member/article')
        },
        {
            path: 'article/:id',   // 文章详情
            name: 'MBArticleDetails',
            meta:{
              title:'文章详情'
            },
            component: () => import(/* webpackChunkName: "MBArticleDetails" */ '../views/member/article/details')
        },
        {
            path: 'file/:id',   // 资料详情
            name: 'fileDetails',
            meta:{
              title:'资料详情'
            },
            component: () => import(/* webpackChunkName: "fileDetails" */ '../views/member/means/fileDetails')
        },
        {
            path: 'share/profit',   // 分享收益列表
            name: 'MBShareProfit',
            meta:{
              title:'分享收益列表'
            },
            component: () => import(/* webpackChunkName: "MBShareProfit" */ '../views/member/share/index')
        },
        {
            path: 'order',   // 支付订单
            name: 'MbPayOrder',
            meta:{
              title:'确认订单'
            },
            component: () => import(/* webpackChunkName: "MbPayOrder" */ '../views/member/order')
        },
        {
            path: 'live',   // 直播列表
            name: 'MbLive',
            meta:{
              title:'直播课程'
            },
            component: () => import(/* webpackChunkName: "MbLive" */ '../views/member/live')
        },
        {
            path: 'activity',   // 优惠活动页
            name: 'MbActivity',
            meta:{
              title:'优惠活动'
            },
            component: () => import(/* webpackChunkName: "MbActivity" */ '../views/member/activity')
        },
        {
            path: 'extension', 
            name: 'MbExtension',
            meta:{
              title:'分享二维码',
              noWxAuto:true  // 不需要微信认证
            },
            component: () => import(/* webpackChunkName: "MbExtension" */ '../views/member/extension')
          },
    ]
}